acc = 0
a=[1,2,3,4,5,6,7,10,11,12,13,14,15,16,17,20,21,22,23,24,25,26,27,30,31,32,33,34,35,36]
for j in range(1,31):

  acc = a[j-1]*1 + acc
  print("aj-1 is",a[j-1])
print("acc",acc)
    
    
    	